package lab02.Test09;

/**
 * Created by 卡01 on 2017/10/25.
 */
public class Student {
    //属性:“学号”、“班号”、“姓名”、“性别”、“年龄”
    String Sno;
    String Classnumber;
    String Name;
    String Gender;
    String Age;

    //方法:“获得学号”、“获得班号”、“获得性别”、“获得姓名”、“获得年龄”
    public String getSno(){return Sno;}
    public String getClassnumber(){return Classnumber;}
    public String getName(){return Name;}
    public String getGender(){return  Gender;}
    public String getAge(){return  Age;}
    public void setSno(String Sno) {this.Sno =Sno;}
    public void setClassnumber(String Classnumber) {
        this.Classnumber = Classnumber;
    }
    public void setName(String Name) {this.Name = Name;}
    public void setGender(String Gender) {
        this.Gender = Gender;
    }
    public void setAge(String Age) {this.Age= Age;}

    //public String toString( )
    public String toString(){
        String s="Sno:"+Sno+"\n Name:"+Name+"\n Gender:"+Gender+"\n Classnumber:"+Classnumber+"\n Age:"+Age;
        return s;
    }
    public static void main(String[] args) {

    }
}

